José María Cañas Escamilla (died October 2, 1860) was a Costa Rican military figure, born in Suchitoto, El Salvador.
He moved to Costa Rica in 1842 along with General Francisco Morazán, where he married Guadalupe Mora Porras, sister of President Juan Rafael Mora Porras.
He was named Secretary of War during the Mora Porras presidency. As a general, he commandeered the Costa Rican Army during the third and most important part of the campaign against filibuster William Walker. He was known as an affable and kind person amongst his troops.
Cañas was also responsible for the development of Costa Rica's Pacific Oceant port, Puntarenas, where he served as commander for several years. Cañas imported Chinese laborers to Puntarenas, employing many of them as laborers on his estates. A benevolent patron to these workers, Cañas's memory is, to this day, held in high remark by many of their descendants. Years after Cañas's death, his children were still well received in Puntarenas by members of the thriving Chinese-Costa Rican community.
In representation of Costa Rica he signed the Cañas-Jerez Treaty, the Cañas-Martínez Treaty and the Cañas-Jerez Treaty that dealt with the demarcation of the border between Costa Rica and Nicaragua.
In 1859, when his brother-in-law was deposed, he emigrated back to El Salvador with him. The following year they returned to Costa Rica seeking the restoration of Mora Porras in the presidency. The expedition failed and they both died in Puntarenas. Juan Rafael Mora Porras was executed by firing squad on September 30; Cañas was killed using the same method on October 2, 1860.
Cañas was the last prominent Costa Rican leader to face the death penalty as the victim of political persecution. Two decades after the execution of Cañas, President Tomás Guardia, who had served under his command in 1856, abolished the death penalty.
Several years after Cañas' execution his widow and their children returned to Costa Rica. The family thrived and was welcomed once again into the country's highest spheres. Cañas' only surviving son, Rafael Cañas Mora, served in the Costa Rican congress and was a successful businessman. Other Cañas descendants include Dr. Luciano Beéche Cañas, a Costa Rican doctor; Rafael Beéche Cañas, founder of the tuna fishing industry in Costa Rica; Eduardo Beéche Titzck, former governor of the state of Puntarenas; Arturo Beéche Bravo, author, educator and royal historian; Alberto Cañas Escalante, author, intellectual and politician; Marta Castegnaro Cañas, newspaper columnist and historian.